package com.dingreading.cloud.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 好读之星-学生
 */
@Data
@Table("readstar_student")
public class ReadstarStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    private String uid;

    private String storeUid;

    private String storeName;

    private String province;
    private String city;
    private String county;

    private String phone;

    private String userName;

    private String bookName;

    private Integer grade;

    private String openid;

    private String orderUid;

    @Column(ignore = true)
    private Integer payStatus;

}
